-- GENERATED SPELL FOR [Uthil Mooncall] --


function spell0_3941(pUnit, Event) --@Bear Form,Self--
pUnit:FullCastSpellOnTarget(7090,pUnit)
pUnit:RegisterEvent('Sorts_3941', 0, 1)
end

function spell1_3941(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(12161,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3941', 599, 1)
end

function spell2_3941(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(8927,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3941', 12000, 1)
end

function spell3_3941(pUnit, Event) --@Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(2091,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3941', 12000, 1)
end

function Sorts_3941(pUnit, Event)
local choix_sorts_3941 = math.random(0, 3)
if choix_sorts_3941 == 0 then
pUnit:RegisterEvent('spell0_3941', 1, 1)
end
if choix_sorts_3941 == 1 then
pUnit:RegisterEvent('spell1_3941', 1, 1)
end
if choix_sorts_3941 == 2 then
pUnit:RegisterEvent('spell2_3941', 1, 1)
end
if choix_sorts_3941 == 3 then
pUnit:RegisterEvent('spell3_3941', 1, 1)
end
end

function mob3941_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3941', math.random(1500, 3000), 1)
end

function mob3941_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3941_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3941_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3941, 1, 'mob3941_Action')
RegisterUnitEvent(3941, 2, 'mob3941_Leave')
RegisterUnitEvent(3941, 3, 'mob3941_Kill')
RegisterUnitEvent(3941, 4, 'mob3941_Die')
